<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div id="test">

  </div>

  <!-- react核心库 -->
  <script src="../js/react.development.js"></script>
  <!-- react DOM库 -->
  <script src="../js/react-dom.development.js"></script>
  <!-- babel用于将jsx转化为js -->
  <script src="../js/babel.min.js"></script>
  <!-- 表示不是js 而是jsx 通过babel -->
  <script type="text/babel">
    // 创建虚拟dom
    const VDOM = <h1>hello react world</h1>
    // 渲染虚拟dom到页面
    ReactDOM.render(VDOM,document.getElementById("test"))

  </script>
</body>
</html>